<?php
	require_once(realpath(dirname(__FILE__)) . "/Baseobj.class.php");

	class Venteprod extends Baseobj{

		var $id;
		var $ref;
		var $titre;
		var $chapo;
		var $description;
		var $quantite;
		var $prixu;
		var $tva;
		var $commande;

		const TABLE="venteprod";
		var $table=self::TABLE;

		var $bddvars = array("id", "ref", "titre", "chapo", "description", "quantite", "prixu", "tva", "commande");

		function __construct($id = 0){
			parent::__construct();

			if($id > 0)
 			  $this->charger($id);
		}

		function charger($id){
			return $this->getVars("select * from $this->table where id=\"$id\"");
		}
	}
?>